display the original settings of the file.
Software Mixing
Software sound mixing can play multiple sound files simultaneously on the same device. There are many ways to execute software mixing in Linux. A server, such as artsd, ESD, Jack..., is usually required. This list will be very long, so applications are often confused about which server to use.
Dmix
Now ALSA has a local plug-in called dmix (direct
Http://wiki.ubuntu.org.cn/problem solving solution: software_mixing
A much better way of getting ESD to work with non-ESD-aware apps is to make ALSA use its software mixer.Enable ALSA to use its own software mixer to work together with applications that are not recognized by ESD.
$ Sudo/etc/init. d/ALSA-utils stop $ sudo gedit/var/lib/ALSA/asound. State(Add the following text verbatim to the start of this file)
$ Sudo/etc/init. d/ALSA-utils start# This text shoshould be added to the beginning
#/
-1.0.8rc2./Configure -- With-aoss = YesMakeMake installThen you need to set the dmix plug-in of ALSA to implement soft multi-audio streams.Create the/etc/asound. conf file. The file content is as follows:
Code:
pcm.!default { type plug slave.pcm "dmixer"}pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:0,0" perio
, PulseAudio--------------------Alsa-lib User Space-------------------------------------Alsa Kernel Space-------Sound Driver----------------------------------HardwareAt this point, the application will invoke the interface provided by the Esd,pulseaudio and other mixer. For ESD, a lot of program support, such as MPlayer. For PulseAudio, there are corresponding patch.Alsa itself also offers mixed-tone plugin,dmix.App1 APP2---------------Alsa-lib (dmix)
1.Environment.getfolderpath (Environment.SpecialFolder)Environment.SpecialFolder.ApplicationFolder is the path to the roaming folder2. Environment.getenvironmentvariable (String)types of support that can be traversed:foreach (DictionaryEntry de in Environment.getenvironmentvariables ()) NB Sp { Console.WriteLine ("{0} = {1}", DE. Key, DE. Value); } type: path = D:\Program Files\sun\ophone sdk\tools;d:\p Rogram Files\sun\android-sdk-windows-1.5_r2\tools;d:\programfiles\sun\s
...ChangeLoad-module-alsa-sink device = dmix(Reboot)
By using dmix, PulseAudio will not occupy the entire audio system. PulseAudio will be one of alsa's Mix channels. Then, ALSA and PulseAudio can coexist well. Libflashsupport for pulseaudio is no longer needed in the future.
Also, install the PulseAudio controller and enjoy the advantages of PulseAudio ~Sudo apt-get install padevchooser
PS after modificati
Article Title: Ubuntu8.04 multi-audio stream solution? Q method. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Since Ubuntu 8.04 tries to move all the software to PulseAudio, it will continue to be based on PulseAudio, which has been successfully running on PulseAudio. Only ALSA software is supported. Continue to use ALSA.
Method-Modify/etc/pulse/default. p
line. Assume that you want to use the first device on the first sound card to play the audio. You can use the following method to obtain the copy of the output sound.
aplay -Dtee:\'plughw:0,0\', /tmp/alsatee.out, rawxy.wav
It seems meaningless (because you can simply copy xy.wav or convert it to SOX). However, using this method, ALSA-based movie player can extract sound content. Tee's output is raw sample data without any file header. File plugin can also be used to read data from files, but
Totem and the rhythmbox player that comes with Ubuntu are faulty. Totem will prompt the audio device is busy, and rhythmbox will make an error and switch to the next one instead of playing the next one successfully.
My reason is: the impact of a process called pulseaudio
PS-u username | grep pulseaudio obtains the process number, and kill the process number to solve the problem.
It is also a bug in Linux. It must be said that pulseaudio is the playing process of a plug-in, maybe in a browser,
software is clever, it will be a good choice for old hardware.
Download: linux/distributions/damnsmall/current/dsl-4.4.1.iso "target = _ blank> Damn Small Linux 4.4.1
Change in DSL v4.4:* New Lua/Fltk refactored for enhanced performance.* New Fltk library now available for C/C ++ programs.* New fldiff-File Diff GUI Viewer.* Update to rsync to v3.0.2* Updated mydslBrowser-new feature "Download Only"* Modified "X Window Snapshot" to save image file with date.* Added dfm association for easy displ
Maven Combat series installs Maven on Windowscy163 Note: value in path:%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\ Windowspowershell\v1.0\; C:\Program Files\intel\dmix;%java_home%\bin;%java_home%\jre;%m2_home%\binHttp://jingyan.baidu.com/article/1709ad808ad49f4634c4f00d.htmlMAVEN is an excellent build tool (similar to ant, but more user-friendly than ant) and helps us automate the build process, from cleanup, c
Database migrated to Oracle 11g, it is normal to use Sqlplus to connect to the target library locally .
When you use form to connect oracle11g, you encounter Frm-40735:on-error trigger raised unhandled exception ORA-03114
[Oracle@db01 ~]$ oerr ORA 0311403114, 00000, "Not connected to ORACLE"*cause:*action:
ORA-03114 Indicates that there is no connection to Oracle.
Checked the configuration of C:\orant\NET80\ADMIN\Tnsnames.ora and%oracle_home%\network\admin\tnsnames.ora is not a problem.
C
following Configuration: # device for voice channelpcm. voice {type plug slave {PCM "HW: 0, 1"} method of calling the sound through the voice channel: the format of aplay-D voice sample.wav indicates that after I adjust the audio data sampling rate and channel through plug-in, send data to the device with the serial number 1 of my 0th cards. In fact, if you do not write the above configuration file, use aplay-d "plug: slave = 'hw: '" sample.wav to get the same result. The hifi channel directly
device index. Readers can get a list of microphone names by calling the List_microphone_names () function of the microphone class. >>> sr.Microphone.list_microphone_names()[‘HDA Intel PCH: ALC272 Analog (hw:0,0)‘, ‘HDA Intel PCH: HDMI 0 (hw:0,3)‘, ‘sysdefault‘, ‘front‘, ‘surround40‘, ‘surround51‘, ‘surround71‘, ‘hdmi‘, ‘pulse‘, ‘dmix‘, ‘default‘]Note: Your output may be different from the previous example.List_microphone_names () returns the index of
audio devices, and so on, with default PCM set.
Defaults.ctl.card 0 Defaults.pcm.card 0 defaults.pcm.device 0 defaults.pcm.subdevice-1 defaults.pcm.nonblock 1 defaults . Pcm.ipc_key 5678293 ...
Set the interface parameters for some plugin built into the ALSA, such as file:
pcm.file {@args [file FORMAT] @args. The FILE {type string} @args. Format {type string default raw} type file SLAVE.PCM null file $FILE format $FORMAT}
The purpose of the file plugin is to store the PCM data stream in a file
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.